package models

import (
	"time"
)

// YhFile undefined
type File struct {
	ID           int64     `json:"id" gorm:"id"`
	OriginalName string    `json:"original_name" gorm:"original_name"`
	Path         string    `json:"path" gorm:"path"`
	UpdatedAt    time.Time `json:"updated_at" gorm:"updated_at"`
	CreatedAt    time.Time `json:"created_at" gorm:"created_at"`
}

// TableName 表名称
func (*File) TableName() string {
	return "dg_file"
}